/**
  ******************************************************************************
* @file				version.h
* @author			ou_teki
* @encoding			UTF-8 
* @date				2024-1102
  ******************************************************************************
  */

#ifndef		__VERSION_H__
#define		__VERSION_H__


#ifdef __cplusplus
extern "C" {
#endif


#include <stdint.h>
#include <string.h>
#include <stdio.h>

#include "mm32_device.h"

#define APP_FLASH_ADDR		0x08000000


#ifndef __STATIC_INLINE
#define __STATIC_INLINE     static inline
#endif

// #if defined (__ICCARM__)  /* IAR */
// #pragma location = ".NoInit"  
// uint32_t g_JumpInit;
// #elif defined(__CC_ARM)   /* MDK AC5 */
// uint32_t g_JumpInit __attribute__((at(0x20000000), zero_init)); 
// #elif  (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) /* MDK AC6 */
// uint32_t g_JumpInit __attribute__( ( section( ".bss.NoInit"))); 
// #elif  defined(__GNUC__)      /* GCC */
// __attribute__((section( ".NoInit"))) uint32_t g_JumpInit;
// #endif

void SetVersion(char *version);
void GetVersion(char *version);



#ifdef __cplusplus
}
#endif

#endif

